changed object count and added raw pointer vector