added better warning message