replaced OBJARRAY with std::vector