getStepsToAdapt function

getStepsToAdapt