added cloning the element feature