made it work again, although not proud of how i did it