clone object using metadata