added print statements throughout pruning process