how to design patches