This loop is extremely strange - can you explain it?