modify pattern