a better check of the properties in data