fix attempt at approvedanswer function