modifed the pruner to include a progress bar