using correct add object function