add pattern composite.