implemented degree higher than heuristic