add curly braces around this if statement