visualizer object refactor