use global matrices as model matrix