replace Vector to ArrayList.