pattern update