made all_splits/2