I went over your original code, you have this:
It should have been:
Basically your first code was fine but you just had the closing bracket in the wrong place But I’m glad everything’s fine now