clean up the `run` method