created activation and deactivation methods