fixed user input problem, wrong type of variable.