implementing the magnetic field, not compiled yet