more descriptive error message for data types.
cosmetic edits
cosmetic edits