deactivate function to remove singleton