how do i choose all elements of an array?