simple brute force geom collapsing