Why are we now doing two loops when one would have worked just fine?