docstring
some cleanup