setting up pruning