This loop is too dense. Maybe we can add some spacing between lines, and some comments. Otherwise it is a little hard to follow