modify patterns