fixed user_input return value to integer