rebuild index file