sample weighting calculation
removed prob
new