update pattern