`as $segment` as `$idx`is not used