added covariance matrix