modified print_args