update heuristic functions