brace refactoring