switch collection length key