getSurveyInfo is a named function