Changes make to heuristic

and fix missing semi colon