oops, got the sense of the condition wrong