working print_response