added update to XML loop
merged conflicts