add braces to some multi-line if() and for()