start to traverse the tree