add covar compute script