wrong "if" order