refactor codeformat