algo notes to GLM