I don't see what this loop is doing?