use arraylist on shared list