added survey code