fixed question and answer generator