using a magnetic field in close vicinity to the substrate