Update mvgd.cpp