make some changes to the date functions