updated tree traveral