added parseChoice() method