revert two examples to print out result directly