using change of resonant frequency