move the repeated gaussian response model code out to separate functions.