prepare for XML serialization