add title and docstring to function