write the header for csv output