using tree structure or hierarchical structure