modified MatchPreFilter.C