made clone function create is's own array