fixing XML usage