Changed map to vector for subObjects