writing a docstring