breaking ties heuristic