simplified code in method `getSteps`
Merge pull request #150 from craue/simplifiy-code-in-method-getsteps

simplify code in method `getSteps`