Improve the compaction#3