shouldn't we replace ring here with the _ value from the case match on line 150?