Creation of index and index2