fix output to match header