fixed bugs, visualizer still wip