integrate tree_categories with tree