fix style in the if statements