warning messages added

I added the warning messages