update pattern engine