Hi! Could you reformat your post to make it easier to follow your code. In particular, surrounding your code with backticks formats it in a way much easier to read. The backtick symbol is
`
This is typical markdown formatting. Consult also Please read: make it easier to help you