PatternPrototype optimized