refactor getSteps() from run()