add weighting