pass nil as count instead of array length