squash the steps to reduce layers