search by date range works