added tighter clustering of leaves