modify serialization