add serialization in xml file