serialization of ct