added tree based pruning of combinations