delete printTree2 and log two functions