adding traces and fixing the computation of MVds