modify get_vector method