making covariancematrix