adding heuristic