changed x to userinput

bad variable name.