Function deactivate