Thank you thank you thank you!! You know where I went wrong I hadn’t understood about the “}”
To add to it there was a second “}” for some reason after that and when I got rid of that it worked!!
Thankyou so much I really appreciate it and had looked on line for ages!