code format refactoring