patterncode 2