change perspective matris to uyse glm