adding docstrings