collection length handling