changed the weighting strategy