actually adding threshold weighting