damn i wasnt touching this code from ages