actually update the file