creation of index