working on binning on the model side - not yet fully implemented