creating index file