creation of index file