updating the index file