rewrite codeformat