remove makevector function.