converted vector to defstruct