about to write file