simplifies conditionals