visualizer3 needed to be wrapped in a function vis3. updated