improved docstring