dates are now working properly