update designPattern