seperate creation of list from actual glm.code