added read covariates functions