binning with weights