removed old clone function