I don't understand this line, why use an O(N)?