prep data code now runs
writing glm data finally works