Magnetic layer composition