clean up and fold