change object serialization