replace Vector to ArrayList.

remove not used code.