Please properly format your code for forum viewing… as required…
Then others are more likely to help.