I don't know why those two functions are not the same, but the results are different. Thank you in advice.