removed max_dates