PURPOSE: This phase II trial is studying how well donepezil or EGb761 works in improving neurocognitive function in patients who have undergone radiation therapy for primary brain tumor or brain metastases.