change in clone function