final heuristic. reworked some comments