small compaction, optimization