add patternofpattern