modification toArray