better error for missing data