doc updated due to code refactoring