update warning message in check