changed params from array to struct in bgcorr