joined if statements