combined if statements