wrote data file