correctly select the unit of measurement