improved warning message