removed unused addMatch code