add rule based pruning