add tree structure
add tree structure