created function to extract covariance data after retrieval