nit: might be good to fix the indentation of that case block so that it doesn't look nested somehow