sorry, the output was not from the posted code
OK.
Why not? It would certainly be better if they matched.