made print_matrix