using variation of distance between electrodes