Thank you it worked i was doing it right but i split it in different functions so they were not communicating properly lol