An addition of a very small amount of Pr in Co-Ni films of a recording medium improves both corrosion resistance and frequency response. The columnar grains, which are induced by oblique incidence of evaporation, becomes remarkably finer by the addition of rare-earth elements. The TEM image of the cross section of the films shows a dense packed structure. High magnetization and a better corrosion resistance are considered to be due to the dense packed structure. The fine grain improves the frequency response. Among several rare-earth elements, especially Pr doping yields a best recording performance.