docstring refactoring