doing heuristic