adding surveys code