done covariance matrix code and put spec