wrote the core functionality of pruning