modify the index file