simplified handling of conditionals