added add method to HierarchyNode