simplify the condition