working on stable cov and mean