using change in magnetic properties