visualizer optimizations