Improve the compaction#4