add weighting flag