properly weighting the negative samples