faster small ranges
wip final
addd bounds check
wip
wip
wip