formatting braces consistently