new param min_values_in_leaf, and refine documents