combine if statements