replace max_date with now