correct if condition