remove all unnecessary steps