add check for date range