doc refactoring