reverse tree structure 4.1