modify the index