update patterns