change PointerMapper to use Segment