speed up of split_values