add split_by_index