change initialization check in getSteps