Add Warning massages in fucntion