to support values and units error handling