fix that final newline bug again