modified addObject