if statement should be within curly braces