working on weighting