converting back into array.  making toArray() return actual array