update rain data functions