paired down code to be more of just what's necessary for quizzes