try and link glm properlly