added tree structure