updated analysis to include KAIS surveys
revised code for SA recoding