pruning of input datasets