updated visualizer cozy code function.