simplified print_tuple implementation