i wonder if we could make this easier , I can see this line 3 / 4 times, and basically we just want to iterate over the vector. Would be useful to figure this out.