refactor retrogradeAnalysisStepN