in reply to Mis-aligned Data Output

In addition to what eyepopslikeamosquito already said and using the data presented, though the OP didn't show any. One can also look at these modules:

You might have to look at the documentation of these modules.

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me