added deactivate and reactivate