added covariates and indicator variable