better fix to arc length problems