doc update.
refactoring.