compacting index in sync