changing the index