updating some of the collapsing functions