update the file