collection to arr