changed std::vector with VECTOR_CLASS for cross platform compatability