using magnetic forces