add jags code for multilevel fitting