add threshold for dataset count