made resolveQuizzes() instead of duplicating code