pattern filter