heuristic workflow