put matrix and fiedos together