document's style refactoring