added ouptput for new XML data structure