change node stats to include leaf nodes