changed order in which dates are assigned