renamed function output -> print_c