updated the indexer