log the binning
Related to #9