error and covmatrix changes