improve segment distance from bar