ugh x is not defined lol