separated gamm code so can quickly regenerate gamm results wihtout running long loop