add braces to ifs