update gapMatchElement.