stackoverflow will become obsolete very soon, posted a piece of code as answer, perfect solution for the question, tested and everything, just added a decent explenation with chatGPT cuz i suck at explaining stuff, post got removed. I'm don