adding afterQuestions function