change the index