adjusted spacing in if statement