Why .toArray here?