again minor stuff
update binning algorithm for odd cases