surveys function version2.