change ArrayList to List<T>