removed old covariance code