added QueryTreeVisitor