fixed spacing in some if statements