add pattern utility