renamed xSplitBy to splitwith