progress to change region splitting to idx as well