produce pattern