changed warning to include newline info