small modification to add braces to an else