ensuring second parameter is passed to openweathermap