doc for serialization