fix output for each line