fixed visualizer; extremely hacky