refactored docs