optimize find previous questionnaire