add scale and units to variables