rewrite warning message