clean weather related code