adding pruning