refactoring DebugVisitor done