gapmatchelement cleanup.