refactor getSurveyId