magnesium and memory