cannot pass pointer to vector types in function: use struct instead