getWeights working