update generate ring var