updating print_response condition