docstring needs to be updated since the assert is removed below