Hello Jesus, That actually does help a lot thank you so much. I don't have experience with multidimensional arrays so I am trying to learn as much as possible from this code. Here's the whole thing. In case you had anything else to add. But again thank you for you explanation. Cheers.