added filtering with a date range