remove isLeaf is flag