adding final XML