[update] changed the UserInput constructor