change list to arraylist