more work on dementia variable