update print matrix