changed which struct is passed to GetWeights