pruning script