added to REST weather function