clone function fixed to support only parse stringify