move vector to pointer