braces added to if statement