edited print_outputs to include headers