extract radio box generator function