adding pruning script