adds weather function