switched conditional statements