simplify conditionals