update with date gen fcn