done print matrix function