added MatchContent function