added isLeaf property