needs to run on deactivation hook