update match method