using magnetic force