append to newfile