better warning message when no data found