refactored rundat from vector to defstruct