taking care of the xml construction: