further tweak to doublerange, and giving up on using it