remove visitor based input tree traversal