Impact of health on intelligence