change script to add date to data file