change calculation of splitting [ci skip]