added not worthless heuristic