fixed covariance issue