fixed the goddamn adjacent code