add prototype of weather detect