changed the object type saved in serialiazable