moved choose into utils