added write to file to 19.3