got the condition backwards