finished heuristic