What does that mean? Is it giving an error? Is it just not doing what you want? Don’t expect us to guess what “not working perfect” means to you, tell us what it is doing wrong.
What do you expect the code to do? What is it doing instead?
If there is an error, copy and paste the error and format it as code, the same as above. Don’t post a screen shot or a photo.