fixed addWeightFactor() method