added allocation of xmass
added solve for mu_n' from n_n'