customize expand-region heuristic