add cloning to patterns