added the  keyword in the deactivate function because of the private helper function that it calls