the cognitive decline function