append header to output