switched to using bins of a given size