remove unnecessary steps.