add curly brackets to if statement