fixed numLeaves