creating a new index file