registered deactivation hook