modify pattern matching to use heuristics for picking the column to split on