adds function to update based on weatherType