a method and apparatus are disclosed for inhibiting diffusion of mobile atoms from an antiferromagnetic layer toward a tunnel oxide layer and through a ferromagnetic layer which is pinned by the antiferromagnetic layer . diffusion of the mobile atoms is inhibited by an oxide layer provided between the anti - ferromagnetic layer and the ferromagnetic layer . alternatively , the ferromagnetic layer can have boron atoms located on or in the layer to fill interstices .