add keywords based pruning