rename numBins to buckets