added scan for tree-walk