added conscious appraisal algorithm