change implementation of posterior aproximation covariance matrix