add pattern of prototype