improving xml output