Compactify tree (mm=0) version