add pattern filter