Should have used an iterator

https://ift.tt/2NCcz3i