reorg the index