removed optional arguments in treewalker constructor