update the whole compaction logical.....