Update pattern-match