update pattern recognition