setup matched sequence for SAM