glm func fixed, output display sub added