changed function connectVSM