extracted radio val pick function