reduce some number of leaves