finished arraylist method