modify all linkedlist to arraylist