resurrected old crappy pruning (plan: use in term filtering)