add pattern option