update for MagneticField
update for MagneticField