fix syntax for if statements