walk the referred tree