make docstring a bit more generic