binning logic implemented but untested