add data model field type checking functions