changed to delete object from assign for null