start glm code