working print_rec (with "if val / 10 and nbc" to correct again)