helps to call the clone function