fix the date in function 1