updated pruning, we made it so prune cannot prune to a leaf