working on faster geometry collapsing