source correct matrix (gamma not jags.mat) and index by yoi not k