consistent curly braces on functions