output data formatting & header