visualizer working and debugged