add pattern to project