update pattern structure