inactivation logic