arraylist to array. i hate you