correct getBins output