simplify booleans