renaming index to index2