covariate issues

for multiple covariates the loop to store data was faulty -