write all models using jags