def METHOD_NAME(self):
    if redo_object in self.cmd.get_names("objects"):
        if self.ligand in self.cmd.get_names("objects"):
            self.cmd.delete(undo_object)
            self.cmd.set_name(self.ligand,undo_object)
            self.cmd.disable(undo_object)
        self.cmd.create(self.ligand,redo_object,zoom=0)