added reindexing