add pattern file