documenting setWeights