on activation and on deactivation