small refactoring to documentation