heuristic added to search