changed to output header for XML