renamed update_jags as update