change pattern