added interactive visualizer for testing