fix curly braces to new line for functions