moved global attributes to the end of respective repeat entry