cap the GLM max_iter to 4