binning for nb