added function to pull in data from survey output