routine for finer-grained pruning added