forgot to add the global variable for xml files.