added new warning function

-