do not depend on number of bins being even