using magnetic properties