added year value to filter_dates()