fixed glm usage