segment fixes, range position calculation