moved typedef and adde typedef for integer vector