Changed coding to save plots of covaraites