fixed glm script output