added check for temperature units