debugging vmatrix calculation