weather fuction done