changed split of date ranges to include both initial ranges