simplified tree iter impl.