assign id

assign the id to the id of the object.