correcting missed conversion to Dates package