good call! the var is misnamed and should be `idx` not `list`