refactor picking choice from input.