can we just force an arraylist here instead of copying things to an array?