added code for dew point calculation