formatting serialization