changing serialization format