compacting edges.