Reducing Aβ and tau levels by combination of exercise and 40-Hz light flickering improves Ca2+ homeostasis and reactive oxygen species such as H2O2 in mitochondria and apoptosis including bax, bcl-2, cytochrome c, and cleaved caspase-3 and cell death, cell differentiation, and neurogenesis in the 3xTg-AD model of the hippocampus, resulting in improving cognitive impairment such as spatial learning, memory and long term memory. The gene discussed is CASP3; the disease is Cognitive impairment.