Yeah i know is code looks kinda shitty but didnt know an other way to slove it.