only for tt samples
fix off-by-one mistake on bin range