Determinants of cognitive function in old age door