removal of unnecessary steps