tidied up some old XML code