rebuild index once only