delete wrong to_json and make the right one deepcopy!