The neutron–proton ratio is not the only factor affecting nuclear stability. Adding neutrons to isotopes can vary their nuclear spins and nuclear shapes, causing differences in neutron capture cross sections and gamma spectroscopy and nuclear magnetic resonance properties. If too many or too few neutrons are present with regard to the nuclear binding energy optimum, the nucleus becomes unstable and subject to certain types of nuclear decay. Unstable nuclides with a nonoptimal number of neutrons or protons decay by beta decay (including positron decay), electron capture, or other means, such as spontaneous fission and cluster decay.