changes to fix creating xml in a group of 50