changed denominator for covariance matrix