new set of code for binary choice