refactored date so that is will change when the date changes