update doc after refactoring