updating docstrings and function call