fixed the xml hierarchy