implemented deactivation