merge match into case