modified the viewer 2 code to include user specified vectors