use arraylist instead of linked list
ignore logs