fixed step-->binsize refactoring