add pattern to replace