fixing date range