update newfile