edit the index file