assign id_field to self.id