first version of check for incorrect numeric values and units