Use the correct functions and you might get the right answer.