changes to the date method