better warning on huge functions