making use of magnetic forces