getting vector_copy to work