added the vector functions