before changing the evaluateMVG function to not calculating inverse or det