makes a proper docstring and removes the assert