added activate and deactivate methods