move get_vectors() out of class