tree travaling have problem