add clone object function