building the deactivate glm