improve warning message