new definition of bin edges
new contribution calculation