ok, should be fixes to the new pruning.
makeing a few functions faster.