trying to fix the last heuristic pattern