simplifying conditionals