update function docstring