oops, got the sense of the error case wrong