fixed the heuristic function calls