ooooopps I just found the code I have had an error, the code I have is very different from the code In my previous post,
the error was that I checked if the async function() finished just one time after like 0.5 seconds, so if function took more than 0.5 seconds the code didn't make what I want
so I think the code of my previous post is correct, I will want someone to tell me if it is, I am just a starter