nodes pruning