glm method