htree simplification dropping unnecessary children attribute in tree