For sure thats the ugliest code I ever wrote