update patterns.json