added the new heuristic