adding VRmain constructor