making a better warning message