removed faulty xml logic