covariance matrix and error estimates