minor change: add a heuristic for preventing constant splitting.