renamed the vector clone function