remove commented code & update docstring