update the data file