change index to index2