Hi @hp3 , welcome to the forum.
You might want to take a look at this post to see how to properly format your code for it to be legible here in the forum.
Also, in order to maximise you chances of getting help is always best to link a reproducible demo so that others can try and see your code in actions.