function getSurvey