moved docstring to the top