converted to docstrings