remove most of empty space and tighten levels