added NonLeafNode to constructor