you are ignoring
editing your first posting
to be good readable code by following this short tutorial
please RE-edit your posting to present your code as a code-section
click on the pencil-icon below your posting and then re-edit your posting following this short tutorial
best regards Stefan