change is_hierarchy length