added getMatch method